package csu.web.credit_bank.service;

import csu.web.credit_bank.pojo.CreditRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import csu.web.credit_bank.utils.Result;

import java.util.List;

public interface CreditRecordsService extends IService<CreditRecord> {
    CreditRecord createCreditRecord(CreditRecord creditRecord);
    List<CreditRecord> getCreditRecordById(String id);
    CreditRecord updateCreditRecord(CreditRecord creditRecord);
    boolean deleteCreditRecord(String id);

    public boolean hasStudentReceivedCourseCredit(String userId, String courseName);
}
